FROM centos:7

# 换源--中科大源
RUN mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
COPY ["./CentOS-Base.repo","/etc/yum.repos.d/"]
RUN yum makecache -y

# 安装中文
RUN yum -y install kde-l10n-Chinese
RUN yum -y reinstall glibc-common
RUN localedef -c -f UTF-8 -i zh_CN zh_CN.utf8

# 配置中文环境变量
ENV LANG zh_CN.UTF-8
ENV LC_ALL zh_CN.UTF-8
RUN locale

# 安装vim和whiptail支持
RUN yum -y install newt vim
RUN yum clean all

WORKDIR /root/
CMD ["/bin/bash"]
